import request from "@/utils/request";
//  获取用户列表
export const userList = (params) => {
  return request({
    url: "/user/list",
    params,
  });
};
// 新增用户
export const userAdd = (data) => {
  return request({
    url: "/user/add",
    method: "post",
    data,
  });
};
// 编辑用户
export const userEdit = (data) => {
  return request({
    url: "/user/edit/" + data.id,
    method: "post",
    data,
  });
};
// 删除用户
export const userRemove = (data) => {
  return request({
    url: "/user/remove",
    method: "post",
    data,
  });
};
